
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/mod2016/include/taglib.jsp"%>

<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<%@ include file="/WEB-INF/views/mod2016/include/head.jsp"%>
	<link href="${ctxStatic}/plat2016/public/js/jquery-ztree/3.5.12/css/zTreeStyle/metro.css" rel="stylesheet" type="text/css"/>
	<title>报表配置</title>
</head>

<body class="bg-gray">
<jsp:include page="/pub/include/top"/>
<div class=" cbox clearfix mgt-10">
	<jsp:include page="/pub/include/nav?navCode=configList"/>
	<div class="con-wr mgb-10  fr">
		<!-- 面包屑 start -->
		<jsp:include page="/pub/include/bread?navCode=configList"/>
		<!-- 面包屑 end -->

		<!-- 三级菜单 start-->
		<jsp:include page="/pub/include/threeNav?navCode=configList"/>
		<!-- 三级菜单 end-->
		<!-- 此处为页面代码 start-->
		<div class="searchbar searchbar-n bg-white ">
			<form:form id="searchForm" modelAttribute="tfEcReportConfig" action="${ctx}/report/config/" method="post">
				<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
				<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
				<div class="fl mgb-10 mgr-20">
					<span class="fl  w80-tr">报表名称：</span>
					<form:input path="reportName" maxlength="50" class="w-input160"/>
				</div>
				<div class="mgl-80 clear ">
					<input type="submit" value="查询" class="btn-yellow mgl-8">
					<input type="button" value="清空" class="btn-gray-outline mgl-10 _goReset">
				</div>
			</form:form>
		</div>

		<div class="list-top pdlr-20 clear pdt-5">
			<div class="list-title fl fs14">业务列表<span class="fs12 font-gray">（共${page.count}条）</span>
				<a href="javascript:history.go(0)"><i></i></a>
			</div>
			<%-- 操作按钮--%>
			<div class="list-manage fr">
				<shiro:hasPermission name="report:config:edit">
				<a href="${ctx}/report/config/form?reportId=${reportId}" class="font-blue">新增</a>
				</shiro:hasPermission>
				<%--<a href="javascript:void(0);" onclick="upShelf(3)" class="font-blue">批量上架</a><span>|</span>--%>
				<%--<a href="javascript:void(0);" onclick="upShelf(4)" class="font-blue">批量下架</a>--%>
			</div>
		</div>
		<div class="list-con pdlr-20 clear">
			<table border="0" width="100%" class=" table-style4  js_table_style4">
				<thead>
				<tr onclick="checkAll(this)" class="erow">
					<td>
						<div class="check-box"><i class="ico-check" id="checkAll"></i></div>
					</td>
					<td>报表id</td>
					<td>报表名称</td>
					<td>归属子系统</td>
					<%--<td>报表类型</td>--%>
					<%--<td>报表说明</td>--%>
					<td>查询sql</td>
					<td>是否支持导出</td>
					<td>备注</td>
					<td>配置人</td>
					<td class="al">操作</td>
				</tr>
				</thead>
				<tbody>
				<c:forEach items="${page.list}" var="report">
					<tr class="erow">
						<td>
							<div class="check-box">
								<i class="ico-check"></i>
							</div>
						</td>
						<td>${report.reportId}</td>
						<td><a href="${ctx }/report/produce?reportId=${report.reportId}" title="${report.reportName}">${fns:abbr(report.reportName,40)}</a></td>
						<td>
							<c:if test="${report.subSysCode=='EB010'}">HUI买</c:if>
							<c:if test="${report.subSysCode=='EB011'}">HUI伙</c:if>
						</td>
						<%--<td>${report.reportType}</td>--%>
						<%--<td>--%>
							<%--<a href="javascript:void(0);" onclick="showDetailPop('${report.reportId}_reportNote')">--%>
									<%--${fn:escapeXml(fn:substring(report.reportNote,0,10))}<c:if test="${fn:length(report.reportNote)>10}">...</c:if>--%>
							<%--</a>--%>
							<%--<div id="${report.reportId}_reportNote" style="display: none">${fn:escapeXml(report.reportNote)}</div>--%>
						<%--</td>--%>
						<td>
							<a href="javascript:void(0);" onclick="showDetailPop('${report.reportId}_sqlRef')">
									${fn:escapeXml(fn:substring(report.sqlRef,0,10))}<c:if test="${fn:length(report.sqlRef)>10}">...</c:if>
							</a>
							<div id="${report.reportId}_sqlRef" style="display: none">${fn:escapeXml(report.sqlRef)}</div>
						</td>
						<td>
							<c:if test="${report.isExport=='0'}">否</c:if>
							<c:if test="${report.isExport=='1'}">是</c:if>
						</td>
						<td>
							<a href="javascript:void(0);" onclick="showDetailPop('${report.reportId}_remark')">
									${fn:escapeXml(fn:substring(report.remark,0,10))}<c:if test="${fn:length(report.remark)>10}">...</c:if>
							</a>
							<div id="${report.reportId}_remark" style="display: none">${fn:escapeXml(report.remark)}</div>
						</td>
						<td>${report.inStaffId}</td>
						<td class="al">
							<div class="manage1 al">
								<shiro:hasPermission name="report:configIn:view">
									<a href="${ctx}/report/configIn/list?reportId=${report.reportId }" class="font-blue mgr-10">输入</a>
								</shiro:hasPermission>
								<shiro:hasPermission name="report:configOut:view">
									<a href="${ctx}/report/configOut/list?reportId=${report.reportId }" class="font-blue">输出</a>
								</shiro:hasPermission>
							</div>
							<div class="manage1 al">
								<shiro:hasPermission name="report:config:edit">
									<a href="${ctx }/report/config/form?reportId=${report.reportId}" class="font-blue mgr-10" >修改</a>
									<a href="${ctx}/report/config/delete?reportId=${report.reportId}" onclick="return confirmx('确认删除吗？',this.href)" class="font-blue">删除</a>
								</shiro:hasPermission>
							</div>
							<div class="manage1 al" style="display: none;">
								<shiro:hasPermission name="report:config:edit">
									<a href="${ctx }/report/config/form?reportId=${report.reportId}" class="font-blue mgr-10" >手动执行</a>
								</shiro:hasPermission>
							</div>
						</td>
					</tr>
				</c:forEach>
				</tbody>
			</table>
		</div>
		<div class="pagination clear "> ${page}</div>
	</div>
</div>
<%-- 弹窗 --%>

</body>
<script type="text/javascript" src="${ctxStatic}/plat2016/public/js/hui.common.js?v=5"></script>
<script type="text/javascript">
    var msg = "${message}";
</script>
</html>
